package base.model;

import lombok.Data;

/**
 * Created by wuhui on 2016/8/4.
 */
@Data
public final class NettyMessage {
    private Header header;//消息头
    private Object body;//消息体
    public static NettyMessage newNettyMessage(byte type){
        NettyMessage message = new NettyMessage();
        Header header = new Header();
        header.setType(type);
        message.setHeader(header);
        return message;
    }
}
